package com.vhly.ddxdecompiler.dexreader.file.constant;

import com.vhly.ddxdecompiler.dexreader.file.DexFile;
import com.vhly.ddxdecompiler.dexreader.file.FieldIdsSection;
import com.vhly.ddxdecompiler.dexreader.file.mixeditem.FieldIdItem;

/**
 * Created by IntelliJ IDEA.
 * User: vhly[FR]
 * Date: 2009-10-21
 * Time: 22:13:11
 * Platform: Mac OS X 10.5.8
 *
 * @author vhly[FR]
 */
public class CstEnum implements CstConstant{
    private int enumIndex; // field index

    private FieldIdItem field;

    public CstEnum(int index) {
        enumIndex = index;
    }

    public void reloc(DexFile dex) {
        FieldIdsSection fields = dex.getFieldIds();
        field = fields.indexOf(enumIndex);
    }

    public Object getJavaData() {
        return null;
    }

    public String getJavaType() {
        return null;
    }
}
